package com.zf.admin.service.Impl;

import com.zf.admin.pojo.Zulist;
import com.zf.admin.dao.ZulistMapper;
import com.zf.admin.service.ZulistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZulistServiceImpl implements ZulistService {

    @Autowired
    private ZulistMapper zulistMapper;

    @Override
    public void insertzulist(Zulist zulist) {
        zulistMapper.insertzulist(zulist);

    }

    @Override
    public List<Zulist> findzuuserlist() throws Exception {
        List<Zulist> zulist = zulistMapper.findzuuserlist();

        return zulist;
    }

    @Override
    public Zulist findzulist(String house_id) {
        Zulist zulist = zulistMapper.findzulist(house_id);
        return zulist;
    }

    @Override
    public void deletezulist(String house_id) {
        zulistMapper.deletezulist(house_id);

    }

}
